package eg2;

public class Test {
    public static void main(String[] agrs){
        MyMath mm=new MyMath(3,5);
        mm.sum(new MyRun() {
            @Override
            public void show(int s) {
                System.out.println("和为："+s);
            }
        });
        MyMath mm2=new MyMath(23,44);
            mm2.sum(new MyRun() {
                @Override
                public void show(int s) {
                    System.out.println("sum is "+s);
                }
            });



    }
}
